<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="javax.servlet.http.HttpSession"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>琳琅商城欢迎您</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/login.css">
<style type="text/css">
</style>
</head>
<%
	String msg = (String) request.getAttribute("msg");
%>
<body style="background:url('images/bg5.jpg')">
	<div id="content" align="center">
		<h2>欢迎登录琳琅商城</h2>
		<!-- /MallProject/LoginServlet -->
		<hr>
		<form action="login" method="post">
			<table class="login_user_info">
				<tr>
					<td><input type="text" name="loginName" placeholder="请输入用户名" required="true" />
					</td>
				</tr>
				<tr>
					<td><input type="password" name="password"
						placeholder="请输入登录密码" required="true" /></td>
				</tr>
				<tr>
					<td style="text-align:left;">
						用户类别:
						<select class="user_type_select" name="user_type">
							<option value="general_user">普通用户</option>
							<option value="admin">后台管理员</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						<button type="submit">登录</button>
					</td>
				</tr>
				<%
					if (msg != null && !"".equals(msg)) {
				%>
				<tr>
					<td colspan="2"><font color="red"><%=msg%></font></td>
				</tr>
				<%
					}
				%>
			</table>

		</form>
	</div>
</body>
</html>
